package by.android.khan;

import by.android.khan.R;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.widget.*;

public class WelcomeActivity extends Activity {

	private Button mButtonUserLogin;
	private Button mButtonGuestLogin;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		mButtonUserLogin = (Button)findViewById(R.id.button_user_login);
		mButtonGuestLogin = (Button)findViewById(R.id.button_guest_login);
		setContentView(R.layout.activity_welcome);
	}

	public void onUserLoginButtonClick(View view)
	{
		startActivity(new Intent(this, KhanLoginActivity.class));
	}
	
	public void onGuestLoginButtonClick(View view)
	{
		startActivity(new Intent(this, GuestLoginActivity.class));
	}
	
	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.activity_welcome, menu);
		return true;
	}

}
